﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Legazpi.Payroll.DataAccess.DataObjects;
using Legazpi.Payroll.Web.Helpers;
using Legazpi.Payroll.DataAccess.DataObjects.Enums;

namespace Legazpi.Payroll.Web
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Response.Redirect("login.aspx");
            //var ctx = DbHelpers.GetDataContext();
            //var emp = ctx.Employees.Find(1);

            //ctx.Users.Add(new User { UserName = "Test" , Password = "1234" });
            //ctx.SaveChanges();
            //var u = ctx.Users.ToList();            
            //string sqlscript = (DbHelpers.GetDataContext() as IObjectContextAdapter).ObjectContext.CreateDatabaseScript();            
            //Response.Write(sqlscript);

            //var timeIn = new DateTime(2012, 1, 1, 19, 0, 0); //7PM
            //var timeOut = new DateTime(2012, 1, 2, 03, 0, 0); //PM
            //var TenPm = new DateTime(2012, 1, 1, 22, 0, 0); //PM            

            //var t = timeOut.Subtract(TenPm).TotalHours;
        }
    }
}
